define(function (require, exports, module) {
    require("flexpaper/jquery.flexpaper.css");
    require("flexpaper/jquery.flexpaper");
    require("flexpaper/jquery.flexpaper.handlers.debug");
    (function ($) {
        $.widget("custom.flexpaper", {
            options: {
                config: {
                    SWFFile: "",
                    Scale: 0.6,
                    ZoomTransition: 'easeOut',
                    ZoomTime: 0.5,
                    ZoomInterval: 0.2,
                    FitPageOnLoad: true,
                    FitWidthOnLoad: true,
                    FullScreenAsMaxWindow: false,
                    ProgressiveLoading: true,
                    MinZoomSize: 0.2,
                    MaxZoomSize: 5,
                    SearchMatchAll: false,
                    InitViewMode: 'Portrait',
                    RenderingOrder: 'flash',
                    StartAtPage: '',

                    ViewModeToolsVisible: true,
                    ZoomToolsVisible: true,
                    NavToolsVisible: true,
                    CursorToolsVisible: false,
                    SearchToolsVisible: false,
                    WMode: 'transparent',
                    localeChain: 'zh_CN'
                }
            },
            _create: function () {
                var _options = $.extend({}, this.options);
                this.element.FlexPaperViewer(_options);
            },
            next: function () {
            },
            prev: function () {
            }

        })
    })(jQuery)

});